//
//  SSSMerchantSearchViewCell.m
//  SSSMerchant
//
//  Created by xnxin on 2017/3/24.
//  Copyright (c) 2017 xnxin. All rights reserved.
//

#import "SSSMerchantSearchViewCell.h"
#import "SSSMerchantSearchViewCellModel.h"
#import "NSDateAddition.h"
#import "NSNumber+Addition.h"

@interface SSSMerchantSearchViewCell()

@property(readonly) SSSMerchantSearchViewCellModel *model;
@end

@implementation SSSMerchantSearchViewCell
@dynamic model;

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(SSSMerchantSearchViewCellModel *)model {

    _model = model;

    self.dateLabel.text = [model.date xhstringWithFormat:@"yyyy-MM-dd"];
    self.moneyLabel.text = [NSString stringWithFormat:@"￥%@",model.money.moneyValue];
    self.acceryImageView.image = [UIImage imageNamed:@"icon_arrows_right"];
}
@end
